<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var a = 12;
        var b = ++a + 2;       //a = 13 , b = 15
        console.log(b);
        var c = b++ + 2;       //c = 17 , b = 16
        console.log(c);
        var d = c++ + ++a;     //a = 14 , d = 31 , c = 18
        console.log(d);
    </script>
</head>
<body>
    
</body>
</html>